package ali_deepseek

import (
	"context"
	"gitee.com/flycash/ai-gateway-demo/internal/repository"
	"gitee.com/flycash/ai-gateway-demo/internal/service/llm/platform/base"
)

type Service struct {
	*base.Service
}

const (
	baseUrl = "https://dashscope.aliyuncs.com/compatible-mode/v1/"
)

func NewService(apikey string, repo repository.PromptConfigRepo, taskRepo repository.AsyncTaskRepo) *Service {
	return &Service{
		base.NewService(apikey, baseUrl, repo, taskRepo, "deepseek-r1"),
	}
}

func (s *Service) Healthy(ctx context.Context) bool {
	// 随便调用一个查询接口就可以
	return true
}
